﻿<ion-modal-view>
    <ion-header-bar class="bar-stable nav-bar-block nav-title-slide-ios7">
        <button class="button button-clear " ng-click="closeMessageModal()"><i class="icon ion-ios-close-empty"></i></button>
        <h1 class="title">{{editMessageTitle}}</h1>
        <button class="button button-clear" ng-click="doMessageSubmit()">提交</button>
    </ion-header-bar>
    <ion-content>
      <ion-list class="lr-list-form">
        <div class="item item-divider">
          处理人员<span>*</span>
        </div>
        <ion-item class="item-input">
          <div class="lr-form-input" ><i class="icon ion-ios-pricetag-outline"></i>处理人员</div>
          <input type="text" ng-model="messageData.userid_value" ng-class="{'active' : isInputMessageActive('userid_value')}" ng-disabled="true"/>

        </ion-item >
        <div class="item item-divider">
          处理时间<span>*</span>
        </div>
		<ion-item>
			<div ion-datetime-picker date ng-model="messageData.date_value" subtitle="处理时间">
				<div class="lr-form-select" ng-hide="messageData.date_value!= null"><i class="icon ion-ios-drag"></i>处理时间</div>
				<div class="item-icon-right" ng-hide="messageData.date_value == null"><div class="lr-form-label positive-bg" >{{messageData.date_value| date: "yyyy-MM-dd"}}</div><i class="icon ion-chevron-right icon-accessory"></i></div>
			</div>
		</ion-item>
        <div class="item item-divider">
          过程记录
		  
		  <i class="icon ion-ios-plus" style="float:right;font-size: 30px;" ng-click="openFileSelectModalForMessage('files');"></i>
		  <span>*</span>
		  
        </div>
        
		<ion-item ng-hide="messageData.files!=null&&messageData.files.length>0"><div class="lr-form-select"><i class="icon ion-ios-drag"></i>过程记录</div></ion-item>
		<div class="list">
			<ion-item ng-repeat="file in messageData.files" class="item-remove-animate mt10" ng-click="getFileContents(file)" >
			<i class="icon ion-document"></i>{{file.filename}}
			<ion-option-button ng-click="doDeleteFileForMessage(file,'files')"><span class="lr-trash-circled"><i class="icon ion-ios-trash-outline"></i></span></ion-option-button>
			</ion-item>
		</div>
		
		
      </ion-list>
    </ion-content>
</ion-modal-view>
